/* 路由信息 */
export default [
  {
    path: '/common',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/common/app/confirmTodoNotice',
        name: '处理门户待办消息移动端',
        component: './TodoList/TodoListMobileApp',
      },
      {
        path: '/common/app/todoNotice',
        name: '查看门户待办消息移动端',
        component: './TodoList/ViewTodoListMobileApp',
      },
      {
        path: '/common/pc/todoNotice',
        name: '处理门户待办消息pc端',
        component: './TodoList/TodoListMobilePc',
      },
      {
        path: '/common/pc/warning_todo_info',
        name: '货值预警待办信息',
        component: './TodoList/WarningToDoInfo',
      },
      {
        path: '/common/pc/warning_supervise',
        name: '货值预警督办',
        component: './TodoList/WarningSupervise',
      },
      {
        path: '/common/goodsPriceContrast',
        name: '货值对比',
        component: './ValueManage/PriceManage/VersionComparison',
      },
      {
        path: '/common/approve',
        name: '货值审批',
        component: './ValueManage/PriceManage/Approve',
      },
      {
        path: '/common/approveMobile',
        name: '移动端货值审批',
        component: './ValueManage/PriceManage/ApproveMobileV1',
      },
      {
        path: '/common/SigningApprove',
        name: '签约审批',
        component: './OperatingPlan/ContractPlan/Approve',
      },
      {
        path: '/common/signingApproveMobile',
        name: '签约移动端审批',
        component: './OperatingPlan/ContractPlan/ApproveMobileV1',
      },
      {
        path: '/common/supplyContrast',
        name: '供货计划版本对比',
        component: './OperatingPlan/SupplyPlan/VersionComparison',
      },
      {
        path: '/common/PayBackModulusApprove',
        name: '回款系数审批',
        component: './OperatingPlan/PayBackModulus/Approve',
      },
      {
        path: '/common/ReturnMoneyPlanApprove',
        name: '回款计划审批',
        component: './OperatingPlan/ReturnMoneyPlan/Approve',
      },
      {
        path: '/common/ReturnMoneyPlanApproveMobile',
        name: '回款计划审批app',
        component: './OperatingPlan/ReturnMoneyPlan/ApproveMobileV1',
      },
      {
        path: '/common/PayBackModulusApproveMobile',
        name: '回款系数审批app',
        component: './OperatingPlan/PayBackModulus/ApproveMobileV1',
      },
    ],
  },
  {
    path: '/500',
    component: './500',
  },
  {
    path: '/403',
    component: './403',
  },
  {
    path: '/Ark',
    component: './Ark',
  },
  {
    path: '/getToken',
    component: './getToken',
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      {
        path: '/',
        name: '首页-基本模板',
        component: './HomePage',
        hideInMenu: true,
      },
      {
        path: '/MonitoringConsole',
        name: '监控台',
        icon: 'home',
        authority: ['menu_101'],
        routes: [
          {
            path: '/MonitoringConsole',
            hideInMenu: true,
            component: './MonitoringConsole',
            // component: './EmptyPage', // 未开放页面
            authority: ['menu_101'],
          },
          {
            path: '/MonitoringConsole/:page',
            hideInMenu: true,
            component: './MonitoringConsole/details',
            authority: ['menu_101'],
          },
          {
            component: './404',
          },
        ],
      },
      {
        path: '/Guideline',
        name: '操作指引',
        hideInMenu: true,
        icon: 'form',
        component: './Guideline',
      },
      {
        path: '/Workbench/allAwaitRemind',
        name: '全部待办提醒',
        hideInMenu: true,
        component: './Workbench/AllAwaitRemind',
      },
      {
        path: '/Workbench',
        name: '工作台',
        icon: 'dashboard',
        authority: ['menu_102'],
        routes: [
          {
            path: '/Workbench',
            hideInMenu: true,
            component: './Workbench',
            authority: ['menu_102'],
          },
          {
            path: '/Workbench/projectWorkbench',
            name: '项目工作台',
            hideInMenu: true,
            component: './Workbench/ProjectWorkbench',
            authority: ['menu_102'],
          },
          {
            path: '/Workbench/projectWorkbench/detail',
            name: '项目工作台-详情',
            hideInMenu: true,
            component: './Workbench/ProjectWorkbench/Detailed',
            authority: ['menu_102'],
          },
          {
            component: './404',
          },
        ],
      },
      {
        path: '/Analysis',
        name: '经营分析',
        icon: 'project',
        authority: ['menu_103'],
        routes: [
          {
            path: '/Analysis/Building',
            name: '货值分析 (楼栋)',
            component: './Analysis/ValueAnalysis/Building',
            authority: ['menu_10301'],
          },
          {
            path: '/Analysis/AreaSegment',
            name: '货值分析 (面积段)',
            component: './Analysis/ValueAnalysis/AreaSegment',
            authority: ['menu_10306'],
          },
          {
            path: '/Analysis/Business',
            name: '供销相对分析表',
            component: './Analysis/ValueAnalysis/Business',
            authority: ['menu_10307'],
          },
          {
            path: '/Analysis/AbsorptionRate',
            name: '去化率分析',
            component: './Analysis/RemovalRateReport',
            authority: ['menu_10302'],
          },
          {
            path: '/Analysis/SupplyAndMarketing',
            name: '供销综合分析',
            component: './Analysis/SupplyAndMarketing',
            authority: ['menu_10303'],
          },
          {
            path: '/Analysis/supplyAndMarketingMonthly',
            name: '月度供货明细表',
            component: './Analysis/SupplyAndMarketingMonthly',
            authority: ['menu_10304'],
          },
          {
            path: '/Analysis/supplyContrast',
            name: '供货对比表',
            component: './Analysis/SupplyContrast',
            authority: ['menu_10305'],
          },
          {
            path: '/Analysis/sign-plan-progress',
            name: '签约计划进度表',
            component: './Analysis/SignPlanProgress',
            authority: ['menu_10308'],
          },
          {
            path: '/Analysis/PaymentCollectionPlan',
            name: '回款计划进度表',
            component: './Analysis/PaymentCollectionPlan',
            authority: ['menu_10310'],
          },
          {
            path: '/Analysis/PayBackModulusReport',
            name: '回款系数分析表',
            authority: ['menu_10309'],
            component: './Analysis/PayBackModulusReport',
          },
          {
            component: './404',
          },
        ],
      },
      {
        path: '/ValueManage',
        name: '货值管理',
        icon: 'calculator',
        authority: ['menu_105'],
        routes: [
          {
            path: '/ValueManage/PriceManage',
            name: '货值填报',
            authority: ['menu_10501'],
            routes: [
              {
                path: '/ValueManage/PriceManage',
                redirect: '/ValueManage/PriceManage/ChoseOrg',
                authority: ['menu_10501'],
              },
              {
                hideInMenu: true,
                path: '/ValueManage/PriceManage/ChoseOrg/:level1?/:level2?',
                name: '选择项目',
                component: './ValueManage/PriceManage/ChoseOrg',
                authority: ['menu_10501'],
              },
              {
                hideInMenu: true,
                path:
                  '/ValueManage/PriceManage/GroupApproveVersion/:level1/:level2/:project/:version?',
                name: '集团审批版',
                component: './ValueManage/PriceManage/GroupApproveVersion',
                authority: ['menu_10501'],
              },
              {
                hideInMenu: true,
                path: '/ValueManage/PriceManage/EntireProject/:level1/:level2/:project',
                name: '全盘货值',
                component: './ValueManage/PriceManage/ProjectValueReport',
                authority: ['menu_10501'],
              },
              {
                hideInMenu: true,
                path:
                  '/ValueManage/PriceManage/:level1/:level2/:project/:stage/:category/:version?',
                name: '版本货值查看',
                component: './ValueManage/PriceManage/PriceEdit',
                authority: ['menu_10501'],
              },
              {
                hideInMenu: true,
                path:
                  '/ValueManage/PriceManage/:level1/:level2/:project/:stage/:category/:version/:edit(edit)',
                name: '版本货值编辑',
                component: './ValueManage/PriceManage/PriceEdit',
                authority: ['menu_10501'],
              },
              {
                path: '/ValueManage/PriceManage/ProjectValue/:project',
                name: '货值审批记录',
                hideInMenu: true,
                component: './ValueManage/PriceManage/ProjectValue',
                authority: ['menu_10501'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
      {
        path: '/OperatingPlan',
        name: '经营计划',
        icon: 'table',
        authority: ['menu_104'],
        routes: [
          {
            path: '/OperatingPlan/SupplyPlan',
            name: '供货计划',
            authority: ['menu_10401'],
            routes: [
              {
                path: '/OperatingPlan/SupplyPlan',
                redirect: '/OperatingPlan/SupplyPlan/ChoseOrg',
                authority: ['menu_10401'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyPlan/ChoseOrg',
                name: '供货计划',
                component: './OperatingPlan/SupplyPlan/ChoseOrg',
                authority: ['menu_10401'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyPlan/ChoseOrg/:level1?/:level2?',
                name: '供货计划',
                component: './OperatingPlan/SupplyPlan/ChoseOrg',
                authority: ['menu_10401'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyPlan/EntireProject/:level1/:level2/:project',
                name: '全盘供货计划',
                component: './OperatingPlan/SupplyPlan/EntireProject',
                authority: ['menu_10401'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyPlan/ConfirmProject/:level1/:level2/:project',
                name: '供货确认',
                component: './OperatingPlan/SupplyConfirm/ConfirmProject',
                authority: ['menu_10401'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/SupplyPlan/:level1/:level2/:project/:stage/:category/:version?',
                name: '供货计划',
                component: './OperatingPlan/SupplyPlan/CategoryDetails',
                authority: ['menu_10401'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/OperatingPlan/SupplyConfirm',
            name: '确认供货',
            authority: ['menu_10403'],
            routes: [
              {
                path: '/OperatingPlan/SupplyConfirm',
                redirect: '/OperatingPlan/SupplyConfirm/ChoseOrg',
                authority: ['menu_10403'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyConfirm/ChoseOrg/:level1?/:level2?',
                name: '选择项目',
                component: './OperatingPlan/SupplyConfirm/ChoseOrg',
                authority: ['menu_10403'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/SupplyConfirm/:level1?/:level2?/:project?',
                name: '确认供货',
                component: './OperatingPlan/SupplyConfirm/ConfirmProject',
                authority: ['menu_10403'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/OperatingPlan/ContractPlan',
            name: '签约计划',
            authority: ['menu_10402'],
            routes: [
              {
                path: '/OperatingPlan/ContractPlan',
                redirect: '/OperatingPlan/ContractPlan/ChoseOrg',
                authority: ['menu_10402'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/ContractPlan/ChoseOrg/:level1?/:level2?',
                name: '选择项目',
                component: './OperatingPlan/ContractPlan/ChoseOrg',
                authority: ['menu_10402'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/ContractPlan/EntireProject/:level1/:level2/:project',
                name: '全盘签约计划',
                component: './OperatingPlan/ContractPlan/EntireProject',
                authority: ['menu_10402'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/ContractPlan/:level1/:level2/:project/:stage/:category/:version?',
                name: '版本签约计划查看',
                component: './OperatingPlan/ContractPlan/VersionDetail',
                authority: ['menu_10402'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/ContractPlan/:level1/:level2/:project/:stage/:category/:version/:group/:productCode/:businessType/:freeType/:proType/:pid/:edit(edit)',
                name: '版本签约计划编辑',
                component: './OperatingPlan/ContractPlan/ProductTypeDetailV1',
                authority: ['menu_10402'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/ContractPlan/v1/:level1/:level2/:project/:stage/:category/:version/:group/:productCode/:businessType/:freeType/:proType/:pid/:edit(edit)',
                name: '版本签约计划编辑金额版本',
                component: './OperatingPlan/ContractPlan/ProductTypeDetailV1',
                authority: ['menu_10402'],
              },
              {
                path: '/OperatingPlan/ContractPlan/ProjectValue/:project',
                name: '签约审批记录',
                hideInMenu: true,
                component: './OperatingPlan/ContractPlan/ProjectValue',
                authority: ['menu_10402'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/OperatingPlan/ReturnMoneyPlan',
            name: '回款计划',
            authority: ['menu_10404'],
            routes: [
              {
                path: '/OperatingPlan/ReturnMoneyPlan',
                redirect: '/OperatingPlan/ReturnMoneyPlan/ChoseOrg',
                authority: ['menu_10404'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/ReturnMoneyPlan/ChoseOrg/:level1?/:level2?',
                name: '回款计划',
                component: './OperatingPlan/ReturnMoneyPlan/ChoseOrg',
                authority: ['menu_10404'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/ReturnMoneyPlan/EntireProject/:level1/:level2/:project',
                name: '全盘回款计划',
                component: './OperatingPlan/ReturnMoneyPlan/EntireProject',
                authority: ['menu_10404'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/ReturnMoneyPlan/:level1/:level2/:project/:stage/:category/:version?',
                name: '分期回款计划',
                component: './OperatingPlan/ReturnMoneyPlan/StagesProject',
                authority: ['menu_10404'],
              },
              {
                hideInMenu: true,
                path:
                  '/OperatingPlan/ReturnMoneyPlan/:level1/:level2/:project/:stage/:category/:version/:group/:edit',
                name: '分期回款计划',
                component: './OperatingPlan/ReturnMoneyPlan/StagesProject/EditPage',
                authority: ['menu_10404'],
              },
              {
                path: '/OperatingPlan/ReturnMoneyPlan/ProjectValue/:project',
                name: '回款审批记录',
                hideInMenu: true,
                component: './OperatingPlan/ReturnMoneyPlan/ProjectValue',
                authority: ['menu_10404'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/OperatingPlan/PayBackModulus',
            name: '回款系数',
            authority: ['menu_10405'],
            routes: [
              {
                path: '/OperatingPlan/PayBackModulus',
                redirect: '/OperatingPlan/PayBackModulus/ChoseOrg',
                authority: ['menu_10405'],
              },
              {
                hideInMenu: true,
                path: '/OperatingPlan/PayBackModulus/ChoseOrg/:level1?/:level2?',
                name: '回款系数',
                component: './OperatingPlan/PayBackModulus/ChoseOrg',
                authority: ['menu_10405'],
              },
              {
                path: '/OperatingPlan/PayBackModulus/:level1/:level2/:project',
                name: '回款系数',
                hideInMenu: true,
                component: './OperatingPlan/PayBackModulus',
                authority: ['menu_10405'],
              },
              {
                path: '/OperatingPlan/PayBackModulus/ProjectValue/:project',
                name: '回款审批记录',
                hideInMenu: true,
                component: './OperatingPlan/PayBackModulus/ProjectValue',
                authority: ['menu_10405'],
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
      {
        path: '/SystemManage',
        name: '系统管理',
        icon: 'setting',
        authority: ['menu_106'],
        routes: [
          {
            path: '/SystemManage/MenuAdministration',
            name: '菜单管理',
            component: './SystemManage/MenuAdministration',
            authority: ['menu_10601'],
          },
          {
            path: '/SystemManage/Structure',
            name: '组织架构',
            component: './SystemManage/Structure',
            authority: ['menu_10602'],
          },
          {
            path: '/SystemManage/limitAdministration',
            name: '权限管理',
            component: './SystemManage/LimitAdministration',
            authority: ['menu_10603'],
          },
          {
            hideInMenu: true,
            path: '/SystemManage/limitAdministration/job_detail',
            name: '岗位明细',
            component: './SystemManage/LimitAdministration/Detailed',
            authority: ['menu_10603'],
          },
          {
            hideInMenu: true,
            path: '/SystemManage/limitAdministration/assign_users',
            name: '分配用户',
            component: './SystemManage/LimitAdministration/AssignUsers',
            authority: ['menu_10603'],
          },
          {
            path: '/SystemManage/SystemConfig',
            name: '系统配置',
            component: './SystemManage/SystemConfig',
            authority: ['menu_10604'],
          },
          {
            path: '/SystemManage/DataDictionaries',
            name: '数据字典',
            component: './SystemManage/DataDictionaries',
            authority: ['menu_10605'],
          },
          {
            path: '/SystemManage/SystemLog',
            name: '系统日志',
            component: './SystemManage/SystemLog',
            authority: ['menu_10606'],
          },
          {
            path: '/SystemManage/Guideline',
            name: '操作指引',
            component: './Guideline',
            authority: ['menu_10607'],
          },
          {
            path: '/SystemManage/Interface',
            name: '接口调用',
            component: './Internalnterface',
            authority: ['menu_10699'],
          },
          {
            component: './404',
          },
        ],
      },
      // {
      //   path: '/BudgetApproval',
      //   name: '预算审批',
      //   icon: 'setting',
      //   routes: [
      //     {
      //       path: '/BudgetApproval',
      //       redirect: '/BudgetApproval/SignPlan',
      //     },
      //     {
      //       path: '/BudgetApproval/SignPlan',
      //       name: '签约计划',
      //       // component: './BudgetApproval/SignPlan',
      //       routes: [
      //         {
      //           path: '/BudgetApproval/SignPlan',
      //           redirect: '/BudgetApproval/SignPlan/ResourceMatching',
      //         },
      //         {
      //           hideInMenu: true,
      //           path: '/BudgetApproval/SignPlan/ResourceMatching',
      //           name: '资源匹配版',
      //           key: 'ResourceMatching',
      //           component: './BudgetApproval/SignPlan',
      //         },
      //         {
      //           hideInMenu: true,
      //           path: '/BudgetApproval/SignPlan/AnnualTarget',
      //           name: '年度目标版',
      //           key: 'AnnualTarget',
      //           component: './BudgetApproval/SignPlan',
      //         },
      //       ]
      //     },
      //     {
      //       path: '/BudgetApproval/ReturnMoneyPlan',
      //       name: '回款计划',
      //     },
      //     {
      //       component: './404',
      //     },
      //   ]
      // },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
